package com.woniu.sale.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Pur_RequestOrderDetail
 * @author 
 */
public class PurRequestorderdetail extends PurRequestorderdetailKey implements Serializable {
    private Integer sourcelno;

    private String prodcd;

    private String prodflg;

    private String inputunitcd;

    private String basicunitcd;

    private Integer saleqnty;

    private Integer salebasicqnty;

    private Integer rbtqnty;

    private Integer rbtbasicqnty;

    private Integer admitqnty;

    private Integer admitbasicqnty;

    private Integer outqnty;

    private Integer outbasicqnty;

    private BigDecimal saleprice;

    private BigDecimal salemny;

    private BigDecimal wpricemny;

    private BigDecimal wholemny;

    private BigDecimal upricemny;

    private BigDecimal unitmny;

    private BigDecimal risetaxmny;

    private BigDecimal contaxmny;

    private String distribstatus;

    private String shortreason;

    private static final long serialVersionUID = 1L;

    public Integer getSourcelno() {
        return sourcelno;
    }

    public void setSourcelno(Integer sourcelno) {
        this.sourcelno = sourcelno;
    }

    public String getProdcd() {
        return prodcd;
    }

    public void setProdcd(String prodcd) {
        this.prodcd = prodcd;
    }

    public String getProdflg() {
        return prodflg;
    }

    public void setProdflg(String prodflg) {
        this.prodflg = prodflg;
    }

    public String getInputunitcd() {
        return inputunitcd;
    }

    public void setInputunitcd(String inputunitcd) {
        this.inputunitcd = inputunitcd;
    }

    public String getBasicunitcd() {
        return basicunitcd;
    }

    public void setBasicunitcd(String basicunitcd) {
        this.basicunitcd = basicunitcd;
    }

    public Integer getSaleqnty() {
        return saleqnty;
    }

    public void setSaleqnty(Integer saleqnty) {
        this.saleqnty = saleqnty;
    }

    public Integer getSalebasicqnty() {
        return salebasicqnty;
    }

    public void setSalebasicqnty(Integer salebasicqnty) {
        this.salebasicqnty = salebasicqnty;
    }

    public Integer getRbtqnty() {
        return rbtqnty;
    }

    public void setRbtqnty(Integer rbtqnty) {
        this.rbtqnty = rbtqnty;
    }

    public Integer getRbtbasicqnty() {
        return rbtbasicqnty;
    }

    public void setRbtbasicqnty(Integer rbtbasicqnty) {
        this.rbtbasicqnty = rbtbasicqnty;
    }

    public Integer getAdmitqnty() {
        return admitqnty;
    }

    public void setAdmitqnty(Integer admitqnty) {
        this.admitqnty = admitqnty;
    }

    public Integer getAdmitbasicqnty() {
        return admitbasicqnty;
    }

    public void setAdmitbasicqnty(Integer admitbasicqnty) {
        this.admitbasicqnty = admitbasicqnty;
    }

    public Integer getOutqnty() {
        return outqnty;
    }

    public void setOutqnty(Integer outqnty) {
        this.outqnty = outqnty;
    }

    public Integer getOutbasicqnty() {
        return outbasicqnty;
    }

    public void setOutbasicqnty(Integer outbasicqnty) {
        this.outbasicqnty = outbasicqnty;
    }

    public BigDecimal getSaleprice() {
        return saleprice;
    }

    public void setSaleprice(BigDecimal saleprice) {
        this.saleprice = saleprice;
    }

    public BigDecimal getSalemny() {
        return salemny;
    }

    public void setSalemny(BigDecimal salemny) {
        this.salemny = salemny;
    }

    public BigDecimal getWpricemny() {
        return wpricemny;
    }

    public void setWpricemny(BigDecimal wpricemny) {
        this.wpricemny = wpricemny;
    }

    public BigDecimal getWholemny() {
        return wholemny;
    }

    public void setWholemny(BigDecimal wholemny) {
        this.wholemny = wholemny;
    }

    public BigDecimal getUpricemny() {
        return upricemny;
    }

    public void setUpricemny(BigDecimal upricemny) {
        this.upricemny = upricemny;
    }

    public BigDecimal getUnitmny() {
        return unitmny;
    }

    public void setUnitmny(BigDecimal unitmny) {
        this.unitmny = unitmny;
    }

    public BigDecimal getRisetaxmny() {
        return risetaxmny;
    }

    public void setRisetaxmny(BigDecimal risetaxmny) {
        this.risetaxmny = risetaxmny;
    }

    public BigDecimal getContaxmny() {
        return contaxmny;
    }

    public void setContaxmny(BigDecimal contaxmny) {
        this.contaxmny = contaxmny;
    }

    public String getDistribstatus() {
        return distribstatus;
    }

    public void setDistribstatus(String distribstatus) {
        this.distribstatus = distribstatus;
    }

    public String getShortreason() {
        return shortreason;
    }

    public void setShortreason(String shortreason) {
        this.shortreason = shortreason;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PurRequestorderdetail other = (PurRequestorderdetail) that;
        return (this.getOrderno() == null ? other.getOrderno() == null : this.getOrderno().equals(other.getOrderno()))
            && (this.getOrderlno() == null ? other.getOrderlno() == null : this.getOrderlno().equals(other.getOrderlno()))
            && (this.getSourcelno() == null ? other.getSourcelno() == null : this.getSourcelno().equals(other.getSourcelno()))
            && (this.getProdcd() == null ? other.getProdcd() == null : this.getProdcd().equals(other.getProdcd()))
            && (this.getProdflg() == null ? other.getProdflg() == null : this.getProdflg().equals(other.getProdflg()))
            && (this.getInputunitcd() == null ? other.getInputunitcd() == null : this.getInputunitcd().equals(other.getInputunitcd()))
            && (this.getBasicunitcd() == null ? other.getBasicunitcd() == null : this.getBasicunitcd().equals(other.getBasicunitcd()))
            && (this.getSaleqnty() == null ? other.getSaleqnty() == null : this.getSaleqnty().equals(other.getSaleqnty()))
            && (this.getSalebasicqnty() == null ? other.getSalebasicqnty() == null : this.getSalebasicqnty().equals(other.getSalebasicqnty()))
            && (this.getRbtqnty() == null ? other.getRbtqnty() == null : this.getRbtqnty().equals(other.getRbtqnty()))
            && (this.getRbtbasicqnty() == null ? other.getRbtbasicqnty() == null : this.getRbtbasicqnty().equals(other.getRbtbasicqnty()))
            && (this.getAdmitqnty() == null ? other.getAdmitqnty() == null : this.getAdmitqnty().equals(other.getAdmitqnty()))
            && (this.getAdmitbasicqnty() == null ? other.getAdmitbasicqnty() == null : this.getAdmitbasicqnty().equals(other.getAdmitbasicqnty()))
            && (this.getOutqnty() == null ? other.getOutqnty() == null : this.getOutqnty().equals(other.getOutqnty()))
            && (this.getOutbasicqnty() == null ? other.getOutbasicqnty() == null : this.getOutbasicqnty().equals(other.getOutbasicqnty()))
            && (this.getSaleprice() == null ? other.getSaleprice() == null : this.getSaleprice().equals(other.getSaleprice()))
            && (this.getSalemny() == null ? other.getSalemny() == null : this.getSalemny().equals(other.getSalemny()))
            && (this.getWpricemny() == null ? other.getWpricemny() == null : this.getWpricemny().equals(other.getWpricemny()))
            && (this.getWholemny() == null ? other.getWholemny() == null : this.getWholemny().equals(other.getWholemny()))
            && (this.getUpricemny() == null ? other.getUpricemny() == null : this.getUpricemny().equals(other.getUpricemny()))
            && (this.getUnitmny() == null ? other.getUnitmny() == null : this.getUnitmny().equals(other.getUnitmny()))
            && (this.getRisetaxmny() == null ? other.getRisetaxmny() == null : this.getRisetaxmny().equals(other.getRisetaxmny()))
            && (this.getContaxmny() == null ? other.getContaxmny() == null : this.getContaxmny().equals(other.getContaxmny()))
            && (this.getDistribstatus() == null ? other.getDistribstatus() == null : this.getDistribstatus().equals(other.getDistribstatus()))
            && (this.getShortreason() == null ? other.getShortreason() == null : this.getShortreason().equals(other.getShortreason()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderno() == null) ? 0 : getOrderno().hashCode());
        result = prime * result + ((getOrderlno() == null) ? 0 : getOrderlno().hashCode());
        result = prime * result + ((getSourcelno() == null) ? 0 : getSourcelno().hashCode());
        result = prime * result + ((getProdcd() == null) ? 0 : getProdcd().hashCode());
        result = prime * result + ((getProdflg() == null) ? 0 : getProdflg().hashCode());
        result = prime * result + ((getInputunitcd() == null) ? 0 : getInputunitcd().hashCode());
        result = prime * result + ((getBasicunitcd() == null) ? 0 : getBasicunitcd().hashCode());
        result = prime * result + ((getSaleqnty() == null) ? 0 : getSaleqnty().hashCode());
        result = prime * result + ((getSalebasicqnty() == null) ? 0 : getSalebasicqnty().hashCode());
        result = prime * result + ((getRbtqnty() == null) ? 0 : getRbtqnty().hashCode());
        result = prime * result + ((getRbtbasicqnty() == null) ? 0 : getRbtbasicqnty().hashCode());
        result = prime * result + ((getAdmitqnty() == null) ? 0 : getAdmitqnty().hashCode());
        result = prime * result + ((getAdmitbasicqnty() == null) ? 0 : getAdmitbasicqnty().hashCode());
        result = prime * result + ((getOutqnty() == null) ? 0 : getOutqnty().hashCode());
        result = prime * result + ((getOutbasicqnty() == null) ? 0 : getOutbasicqnty().hashCode());
        result = prime * result + ((getSaleprice() == null) ? 0 : getSaleprice().hashCode());
        result = prime * result + ((getSalemny() == null) ? 0 : getSalemny().hashCode());
        result = prime * result + ((getWpricemny() == null) ? 0 : getWpricemny().hashCode());
        result = prime * result + ((getWholemny() == null) ? 0 : getWholemny().hashCode());
        result = prime * result + ((getUpricemny() == null) ? 0 : getUpricemny().hashCode());
        result = prime * result + ((getUnitmny() == null) ? 0 : getUnitmny().hashCode());
        result = prime * result + ((getRisetaxmny() == null) ? 0 : getRisetaxmny().hashCode());
        result = prime * result + ((getContaxmny() == null) ? 0 : getContaxmny().hashCode());
        result = prime * result + ((getDistribstatus() == null) ? 0 : getDistribstatus().hashCode());
        result = prime * result + ((getShortreason() == null) ? 0 : getShortreason().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sourcelno=").append(sourcelno);
        sb.append(", prodcd=").append(prodcd);
        sb.append(", prodflg=").append(prodflg);
        sb.append(", inputunitcd=").append(inputunitcd);
        sb.append(", basicunitcd=").append(basicunitcd);
        sb.append(", saleqnty=").append(saleqnty);
        sb.append(", salebasicqnty=").append(salebasicqnty);
        sb.append(", rbtqnty=").append(rbtqnty);
        sb.append(", rbtbasicqnty=").append(rbtbasicqnty);
        sb.append(", admitqnty=").append(admitqnty);
        sb.append(", admitbasicqnty=").append(admitbasicqnty);
        sb.append(", outqnty=").append(outqnty);
        sb.append(", outbasicqnty=").append(outbasicqnty);
        sb.append(", saleprice=").append(saleprice);
        sb.append(", salemny=").append(salemny);
        sb.append(", wpricemny=").append(wpricemny);
        sb.append(", wholemny=").append(wholemny);
        sb.append(", upricemny=").append(upricemny);
        sb.append(", unitmny=").append(unitmny);
        sb.append(", risetaxmny=").append(risetaxmny);
        sb.append(", contaxmny=").append(contaxmny);
        sb.append(", distribstatus=").append(distribstatus);
        sb.append(", shortreason=").append(shortreason);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}